package org.sgx.gwtjsutiltest.client;

import java.util.Collection;

import org.sgx.jsutil.client.JsArray;
import org.sgx.jsutil.client.TestUtil;

import com.google.gwt.core.client.JavaScriptObject;
import com.google.gwt.user.client.Window;

public class JsArrayTest1 {
public void test1(TestUtil test) {
	JsArray arrInt1 = JsArray.create(1,2,3); 
	
	
	test.assertTrue(arrInt1.getInt(0)==1);
	test.assertTrue(arrInt1.getInt(1)==2);
	test.assertTrue(arrInt1.getInt(2)==3);
	
//	Collection<Integer> c = arrInt1.asCollection();
//	test.assertTrue(c.iterator().next()==1);
//	test.assertTrue(TestUtil2.sum(arrInt1.asCollection())==6);
//	JsUtil.castToInt(new Object());
	
//	com.google.gwt.core.client.JsArray<JavaScriptObject> a = null;
//	a.c
}
}
